package chessmate;

public class Move {
	
	Square from;
	Square to;
	
	public Move(String str){
		String [] stringToSplit = str.split("-");
		this.from = new Square(stringToSplit[0]);
		this.to = new Square(stringToSplit[1]);
	}//end constructor
	
	public Move(Square from, Square to){
		this.from = from;
		this.to = to;
	}//end constructor
	
	public String toString(){
		return from + "-" + to;
	}
	
}//end class
